Skip to content

[Alternative][DeadCode][Php80] Handle crash on mix ClassPropertyAssignToConstructorPromotionRector+RemoveParentDelegatingConstructorRector#7799

Merged
TomasVotruba merged 4 commits into
mainfrom
alternative-crash-mix-prop
Jan 5, 2026
Merged

[Alternative][DeadCode][Php80] Handle crash on mix ClassPropertyAssignToConstructorPromotionRector+RemoveParentDelegatingConstructorRector#7799
TomasVotruba merged 4 commits into
mainfrom
alternative-crash-mix-prop

Conversation

@samsonasik

@samsonasik samsonasik commented Jan 3, 2026

Copy link
Copy Markdown
Member

Fixes rectorphp/rector#9577
Closes #7794

Ref https://getrector.com/demo/f693662b-ce0d-45cf-93d6-cf7d9674a06f

@TomasVotruba Here alternative of PR:

which the reindex is only happen after refactor, but with traverser to avoid issues when multiples rules apply, and higher node remove deep node.

I added comment for future reference.

@samsonasik

Copy link
Copy Markdown
Member Author

@TomasVotruba ready 👍

@TomasVotruba

Copy link
Copy Markdown
Member

I prefer this one, as more generic only in case of change.
Thanks 👍

@TomasVotruba
TomasVotruba merged commit ed60a22 into main Jan 5, 2026
58 checks passed
@TomasVotruba
TomasVotruba deleted the alternative-crash-mix-prop branch January 5, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Type error in "RemoveParentDelegatingConstructorRector::matchParentConstructorCallArgs" in a combination with a large PhpSet

2 participants